﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StringMatch
{
    public class RandomString
    {
        public String String { get; private set; }
        private static Random r = new Random();
        public RandomString(Int32 length)
        {
            StringBuilder sb = new StringBuilder(length);

            for (Int32 i = 0; i < length; i++)
            {
                sb.Append(Math.Round(r.NextDouble()));
            }
            String = sb.ToString();
        }
    }
}
